﻿@model IEnumerable<ArticleWeb.Models.ArticleTag>

@{
    ViewBag.Title = "标签管理";
}

<table class="layui-table">
    <thead>
        <tr>
            <th>
                ID
            </th>
            <th>
                标签
            </th>
            <td>
                片段数量
            </td>
            <td>
                引用数量
            </td>
            <td>
                创建时间
            </td>
            <td>
                更新时间
            </td>
            <th>操作</th>
        </tr>
    </thead>

    @foreach (var item in Model)
    {
        <tr>
            <td>
                @item.ID
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.TagText)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Fragments)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Referenced)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreateTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UpdateTime)
        </td>
        <td>
            @Html.ActionLink("编辑", "Edit", new { id = item.ID })
        </td>
    </tr>
    }
</table>
@using Webdiyer.WebControls.Mvc;
@Html.Pager(new PagedList<ArticleWeb.Models.ArticleTag>(Model, Request.GetPageIndex(), Request.GetPageSize(), ViewBag.Total), new PagerOptions
{
    PageIndexParameterName = "page",
    CurrentPagerItemWrapperFormatString= "<span class=\"layui-laypage-curr\"><em class=\"layui-laypage-em\"></em><em>{0}</em></span>",
},new { @class= "layui-box layui-laypage layui-laypage-default" })